﻿@model Vacation.Models.ChangePasswordModel

@{
    ViewBag.Title = "修改密码";
}

<h2>修改密码</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
 <table width="100%" class="edit">
        <tr>
            <th>
                <div class="editor-label">
                    @Html.LabelFor(model => model.UserName)
                </div>
            </th>
            <td>
                <div class="editor-field">
                    @Html.DisplayFor(model => model.UserName)
                </div>
            </td>
        </tr>
        <tr>
            <th>
                <div class="editor-label">
                    @Html.LabelFor(model => model.NewPassword)
                </div>
            </th>
            <td>
                <div class="editor-field">
                    @Html.PasswordFor(model => model.NewPassword)
                    @Html.ValidationMessageFor(model => model.NewPassword)
                </div>
            </td>
        </tr>
        <tr>
            <th>
                <div class="editor-label">
                    @Html.LabelFor(model => model.ConfirmPassword)
                </div>
            </th>
            <td>
                <div class="editor-field">
                    @Html.PasswordFor(model => model.ConfirmPassword)
                    @Html.ValidationMessageFor(model => model.ConfirmPassword)
                </div>
            </td>
        </tr>
    </table>
    <p style="text-align: center">
        <input type="submit" value="更改密码" />
    </p>
}

<div>
    @Html.ActionLink("返回", "Index")
</div>
